package com.zju.DoctorGo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "patient")
public class Patient {
    /**
     * 用户ID
     */
    @TableId(value = "userId",type = IdType.INPUT)
    private Integer userId;
    /**
     * 患者姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别 1男 0女
     */
    private Integer gender;

    @TableField("doctor_id")
    private Integer doctorId;

    private String telephone;

    private String email;
}
